package JLB_Chapter_02;

public class code_02_03 {
    public static void main(String[] args) {
        //展示double类型的不精确计算结果
        /**
         * DoubleUnAccurate1
         */
        double a = 4.35 * 100;
        System.out.println("a  =" + a);
        //利用强制类型转换将double 类型强制转化为double类型
        int b = (int) a;
        //输出int值
        System.out.println("b = " + b);
        //使用四舍五入
        System.out.println("a的四舍五入值 = " + Math.round(a));
    }
}
